#ifndef _FindLocationForm_H_
#define _FindLocationForm_H_

#include <FBase.h>
#include <FUi.h>
#include "../Utility/Downloader.h"

//#include "../"
class FindLocationForm: public Osp::Ui::Controls::Form,
		public Osp::Ui::IActionEventListener,
		public Osp::Ui::IItemEventListener{

	// Construction
public:
	FindLocationForm(void);
	virtual ~FindLocationForm(void);
	bool Initialize();
	result OnInitializing(void);
	result OnTerminating(void);

	// Implementation

	// Generated call-back functions
public:
	void OnItemStateChanged(const Osp::Ui::Control &source, int index,
			int itemId, Osp::Ui::ItemStatus status);
	void OnActionPerformed(const Osp::Ui::Control &source, int actionId);

	//Mycode
	//Variant
	void SetFormId(int id){
		this->FormId = id;
	}

	static int GetFormId(){
		return FormId;
	}
private:
	Osp::Ui::Controls::List *pLstDanhSachDiaChi;
	Osp::Ui::Controls::EditField *pEditFieldDiaChi;
	Osp::Base::Collection::ArrayList *arrAddress;
	///Osp::Base::String*arrAddress;
	int numOfAddress;

	//Action id
	const static int ID_LSTDANHSACHDIACHI = 1024;
	const static int ID_EDITFIELDDIACHI = 1025;
	const static int ID_SOFTKEY_OK = 1026;
	const static int ID_SOFTKEY_CANCEL = 1027;
	static int FormId;
	//function
protected:

	void TimKiem();
public:
	void ThemDiaChiTuFileVaoDanhSach();
};

#endif
